package com.gotrade.demo.protocol;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * @author jason.tang
 * @create 2018-12-04 17:58
 * @description 数据包对象
 */

@Data
public abstract class Packet {

    /**
     * 协议版本
     */
    //@JSONField(deserialize = false, serialize = false)
    private Byte version = 1;

    /**
     * 指令
     */
    //@JSONField(serialize = false)
    public abstract Byte getCommand();
}